package cn.zhy.basic.util;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
public class AjaxResult {
    public Boolean success = true;
    public String message = "操作成功";
    public  static AjaxResult me(){
        return new AjaxResult();
    }

    //这里使用的是链式语法
    public AjaxResult setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public AjaxResult setMessage(String message) {
        this.message = message;
        return this;
    }



}
